import Vue from 'vue'
import router from './router/router.js'
import Main from './views/index.vue'

import globalComponents from './components/global/index.js'
import plugins from './plugins/index.js'
// import 'lib-flexible';
import '@/icons' //  全局注册组件

import store from './store'
import 'babel-polyfill'
import promise from 'es6-promise'
promise.polyfill()

Vue.use(plugins).use(globalComponents)

const vm = new Vue({
  el: '#main',
  router,
  store,
  render: (h) => h(Main),
})
